//
//  LunBoCollectionCell.m
//  Protect -A
//
//  Created by 付剑英 on 16/6/25.
//  Copyright © 2016年 付剑英. All rights reserved.
//

#import "LunBoCollectionCell.h"

@implementation LunBoCollectionCell
- (void)dealloc
{
    [_photo release];
    [super dealloc];
    
}


#pragma mark - ------------ 初始化 设置img ---------------
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.photo = [[baseImageView alloc]init];
        _photo.contentMode =  UIViewContentModeScaleAspectFill;
        _photo.clipsToBounds = YES;
        [self.contentView addSubview:_photo];
        
    }
    return self;
    
}
#pragma mark - ------------ 设置img大小 ---------------
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    _photo.frame = self.contentView.frame;
}


@end
